package cn.edu.nju.software.bean.show;

import cn.edu.nju.software.bean.storage.Admin;

public class AdminShow {
	
	private String signInName;
	private String name;
	private String password;
	
	public AdminShow(Admin admin) {
		if (admin != null) {
			this.signInName = admin.getSignInName();
			this.name = admin.getName();
			this.password = admin.getPassword();
		}
	}
	
	public String getSignInName() {
		return signInName;
	}
	
	public void setSignInName(String signInName) {
		this.signInName = signInName;
	}
	
	public String getName() {
		return name;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	
	public String getPassword() {
		return password;
	}
	
	public void setPassword(String password) {
		this.password = password;
	}
	
	public Admin getAdmin() {
		return new Admin(signInName, name, password);
	}
	
}
